package com.javaProject.service;

import com.javaProject.dto.R;
import com.javaProject.entity.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;

/**
* @author ASUS
* @description 针对表【teacher】的数据库操作Service
* @createDate 2024-03-08 11:07:54
*/
public interface TeacherService extends IService<Teacher> {
    R login(Teacher teacher) throws NoSuchAlgorithmException, InvalidKeySpecException;

    R add(Teacher teacher) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException;

    R upDate(Teacher teacher) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException;


    List<Teacher> getAllTeachers() throws NoSuchAlgorithmException, InvalidKeySpecException;


    R Delect(Teacher teacher);

    R getTeacher(Teacher teacher) throws NoSuchAlgorithmException, InvalidKeySpecException;
}
